package com.DosonLeung.homeschoolcommunication.Constant;
/**
 * Created by DosonLeung on 2014/11/13.
 */
public class UrlConstant {
    //服务器地址
    public static String baseUrl = "http://120.24.58.118:8000/";
    //注册URL
    public static String registUrl = baseUrl+"api/users/signup?account=%s&password=%s&" +
            "type=%s&name=%s&sex=%s&description=%s&role=%s&classid=%s&phone=%s";
    //检查账号是否已经被注册
    public static String registedUrl = baseUrl+"api/users/checkaccount?account=%s";
    //获取班级列表
    public static String getClassUrl = baseUrl+"api/class/getlist";
    //验证账号密码是否正确
    public static String loginUrl = baseUrl+"api/users/verify?account=%s&password=%s";
    //验证TOKEN是否正确
    public static String tokenUrl = baseUrl+"api/users/checktoken?account=%s&token=%s";
    //获取同一班级其他成员信息
    public static String getPersonUrl = baseUrl+"api/users/getmembersinfo?account=%s&password=%s";
    //获取个人信息
    public static String getInfoUrl = baseUrl+"api/users/getuserinfo?account=%s&password=%s";
    //获取上传凭证
    public static String getTokenUrl = baseUrl+"api/upload/getuptoken";
    //获取历史消息
    public static String getHistoryMessageUrl = baseUrl+"/users/gethistorymessages";
    //获取科目列表
    public static String getSubjectUrl = baseUrl+"api/subjects/getlist";
    //获取历史消息
    public static String getHistoryUrl = baseUrl+"api/users/gethistorymessages?account=%s&password=%s";
    //获取阅读消息
    public static String getReadUrl = baseUrl+"api/messages/getmessageinfo?tcid=%s&sendtime=%s";

}
